package com.gitee.xmhzzz.component.things.metadata;

import java.util.Map;

/**
 * @ClassName DataType
 * @Description
 * @Author wzq
 * @Date 2024/5/23 18:05
 * @Version 1.0
 */
public interface DataType extends Metadata, FormatSupport {
    // private String type;
    // private Spec specs;

    ValidateResult validate(Object value);

    /**
     * @return 类型标识
     */
    default String getType() {
        return getId();
    }

    /**
     * @return 拓展属性
     */
    @Override
    default Map<String, Object> getExpands() {
        return null;
    }
}
